<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.18"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Railway Operation Simulator: Utilities.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="railway-logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Railway Operation Simulator
   &#160;<span id="projectnumber">v2.23.2</span>
   </div>
   <div id="projectbrief">A railway simulator for Windows</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('_utilities_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">Utilities.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_utilities_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">// Utilities.h</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">      Comments in .h files are believed to be accurate and up to date</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"></span> </div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">      This is a source code file for &quot;railway.exe&quot;, a railway operation</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">      simulator, written originally in Borland C++ Builder 4 Professional with</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">      later updates in Embarcadero C++Builder.</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">      Copyright (C) 2010 Albert Ball [original development]</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"></span> </div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">      This program is free software: you can redistribute it and/or modify</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">      it under the terms of the GNU General Public License as published by</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">      the Free Software Foundation, either version 3 of the License, or</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">      (at your option) any later version.</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"></span> </div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">      This program is distributed in the hope that it will be useful,</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">      but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">      GNU General Public License for more details.</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"></span> </div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">      You should have received a copy of the GNU General Public License</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment">      along with this program.  If not, see &lt;http://www.gnu.org/licenses/&gt;.</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment">// ---------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#ifndef UtilitiesH</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#define UtilitiesH</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment">// ---------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160; </div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#include &lt;deque&gt;</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#include &lt;vcl.h&gt;</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#include &lt;fstream&gt;</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#include &lt;locale.h&gt;</span> <span class="comment">//to check local decimal point character, added at v2.4.0</span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#include &lt;windows.h&gt;</span>            <span class="comment">//needed for 64 bit compilation</span></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160; </div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="comment">// ---------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160; </div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="_utilities_8h.html#a90aecfc4f47c8d044781e5bb2f120d3b">   36</a></span>&#160;<span class="keyword">enum</span> <a class="code" href="_utilities_8h.html#a90aecfc4f47c8d044781e5bb2f120d3b">TDelayMode</a> <span class="comment">//added at v2.13.0.  Here so DelayMode retains value when ClearEverything called</span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;{</div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="_utilities_8h.html#a90aecfc4f47c8d044781e5bb2f120d3ba3892f12903b98ca0d89fe787c0fc4419">   38</a></span>&#160;    <a class="code" href="_utilities_8h.html#a90aecfc4f47c8d044781e5bb2f120d3ba3892f12903b98ca0d89fe787c0fc4419">Nil</a>, <a class="code" href="_utilities_8h.html#a90aecfc4f47c8d044781e5bb2f120d3bac291d8af9642b24153c5a16658a85d4c">Minor</a>, <a class="code" href="_utilities_8h.html#a90aecfc4f47c8d044781e5bb2f120d3ba9bff008f7a709ad64585edee31691d8e">Moderate</a>, <a class="code" href="_utilities_8h.html#a90aecfc4f47c8d044781e5bb2f120d3babf86141fa29ab96a0cf6fad57b11d842">Major</a></div>
<div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="_utilities_8h.html#a90aecfc4f47c8d044781e5bb2f120d3babf86141fa29ab96a0cf6fad57b11d842">   39</a></span>&#160;};</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160; </div>
<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="_utilities_8h.html#a883faa4add820b7ae34c5f179421f91a">   41</a></span>&#160;<span class="keyword">enum</span> <a class="code" href="_utilities_8h.html#a883faa4add820b7ae34c5f179421f91a">TFailureMode</a> <span class="comment">//added at v2.14.0.  Here so FailureMode retains value when ClearEverything called</span></div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;{</div>
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="_utilities_8h.html#a883faa4add820b7ae34c5f179421f91aa0031a6a8a5e752ec07dd0e6b336f7ab1">   43</a></span>&#160;    <a class="code" href="_utilities_8h.html#a883faa4add820b7ae34c5f179421f91aa0031a6a8a5e752ec07dd0e6b336f7ab1">FNil</a>, <a class="code" href="_utilities_8h.html#a883faa4add820b7ae34c5f179421f91aaf3e7ed27a1e052d4c889418e8f2d3327">FMinor</a>, <a class="code" href="_utilities_8h.html#a883faa4add820b7ae34c5f179421f91aa30a573a3972c489bd29d8f01c4fcf79c">FModerate</a>, <a class="code" href="_utilities_8h.html#a883faa4add820b7ae34c5f179421f91aa40fe3ff890a7aa79561b43aaad3631b0">FMajor</a></div>
<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="_utilities_8h.html#a883faa4add820b7ae34c5f179421f91aa40fe3ff890a7aa79561b43aaad3631b0">   44</a></span>&#160;};</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160; </div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="class_t_utilities.html">   46</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_t_utilities.html">TUtilities</a> <span class="comment">// single object incorporating general purpose data &amp; functions for all units to access</span></div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;{</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="comment">//delay &amp; track element failure parameters</span></div>
<div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="class_t_utilities.html#ac90efde52aee911e415d52e7ac6227ad">   50</a></span>&#160;    <span class="keywordtype">float</span> <a class="code" href="class_t_utilities.html#ac90efde52aee911e415d52e7ac6227ad">MinorDelayCutoff</a>;</div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="class_t_utilities.html#a3194f06722e68ce72f9968f5f85e3c8f">   51</a></span>&#160;    <span class="keywordtype">float</span> <a class="code" href="class_t_utilities.html#a3194f06722e68ce72f9968f5f85e3c8f">ModerateDelayCutoff</a>;</div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="class_t_utilities.html#afcf1e36ba4cce8470285d047c8b9cb13">   52</a></span>&#160;    <span class="keywordtype">float</span> <a class="code" href="class_t_utilities.html#afcf1e36ba4cce8470285d047c8b9cb13">MajorDelayCutoff</a>;</div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="class_t_utilities.html#a9bb794804a4bec3887d63adca9db5dac">   53</a></span>&#160;    <span class="keywordtype">float</span> <a class="code" href="class_t_utilities.html#a9bb794804a4bec3887d63adca9db5dac">MinorDelayFactor</a>;</div>
<div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="class_t_utilities.html#a4232af5a39f009bc8cbb7bfc4663142a">   54</a></span>&#160;    <span class="keywordtype">float</span> <a class="code" href="class_t_utilities.html#a4232af5a39f009bc8cbb7bfc4663142a">ModerateDelayFactor</a>;</div>
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="class_t_utilities.html#a67ecc5fc0071c86a3126e63d265020b1">   55</a></span>&#160;    <span class="keywordtype">float</span> <a class="code" href="class_t_utilities.html#a67ecc5fc0071c86a3126e63d265020b1">MajorDelayFactor</a>;</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160; </div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="class_t_utilities.html#a6de32a7421601aab5689cabbb7dde465">   57</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_t_utilities.html#a6de32a7421601aab5689cabbb7dde465">NilPointChangeEventsPerFailure</a>;</div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="class_t_utilities.html#a244b2f44fa9ea31371c076cfc0262e04">   58</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_t_utilities.html#a244b2f44fa9ea31371c076cfc0262e04">NilSignalChangeEventsPerFailure</a>;</div>
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="class_t_utilities.html#aac7fbaa73f50fb32b5efe38d071a2eb4">   59</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_t_utilities.html#aac7fbaa73f50fb32b5efe38d071a2eb4">NilMTBTSRs</a>;</div>
<div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="class_t_utilities.html#a9d56c83b95531e26b1c62dd6771f6b11">   60</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_t_utilities.html#a9d56c83b95531e26b1c62dd6771f6b11">MinorPointChangeEventsPerFailure</a>;</div>
<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="class_t_utilities.html#a7dba9ac5efb64fb83bc6b36770749298">   61</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_t_utilities.html#a7dba9ac5efb64fb83bc6b36770749298">MinorSignalChangeEventsPerFailure</a>;</div>
<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="class_t_utilities.html#a388cc790966733382ddc173f748ab6d6">   62</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_t_utilities.html#a388cc790966733382ddc173f748ab6d6">MinorMTBTSRs</a>;</div>
<div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="class_t_utilities.html#ac98d33b8d5845ad74b54d6b7c92d95a7">   63</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_t_utilities.html#ac98d33b8d5845ad74b54d6b7c92d95a7">ModeratePointChangeEventsPerFailure</a>;</div>
<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="class_t_utilities.html#a20ae7bf91b93f29bafb37ead829b7d28">   64</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_t_utilities.html#a20ae7bf91b93f29bafb37ead829b7d28">ModerateSignalChangeEventsPerFailure</a>;</div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="class_t_utilities.html#aa2a4f55a8b3315c479133290032998e8">   65</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_t_utilities.html#aa2a4f55a8b3315c479133290032998e8">ModerateMTBTSRs</a>;</div>
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="class_t_utilities.html#ab3be63951eee57df78cf0bd96c9a1b9a">   66</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_t_utilities.html#ab3be63951eee57df78cf0bd96c9a1b9a">MajorPointChangeEventsPerFailure</a>;</div>
<div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="class_t_utilities.html#a074fc0a3b1d6dbfd514357209eea756b">   67</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_t_utilities.html#a074fc0a3b1d6dbfd514357209eea756b">MajorSignalChangeEventsPerFailure</a>;</div>
<div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="class_t_utilities.html#a4509aa6dd1d0f6b69db8008070f3dbab">   68</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_t_utilities.html#a4509aa6dd1d0f6b69db8008070f3dbab">MajorMTBTSRs</a>;</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160; </div>
<div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="class_t_utilities.html#ae7abd82dfb74ba9706cde72a9ba3c014">   70</a></span>&#160;    <span class="keywordtype">float</span> <a class="code" href="class_t_utilities.html#ae7abd82dfb74ba9706cde72a9ba3c014">RepairDiagnosisTime</a>;  <span class="comment">//these are all in minutes</span></div>
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="class_t_utilities.html#a53cd396b37abddd24064eaa524d89db0">   71</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_t_utilities.html#a53cd396b37abddd24064eaa524d89db0">MaxRandomRepairTime</a>;</div>
<div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="class_t_utilities.html#aabf10d10edc0fd28bb2890d70f9b02ee">   72</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_t_utilities.html#aabf10d10edc0fd28bb2890d70f9b02ee">FixedMinRepairTime</a>;</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160; </div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;<span class="comment">//other variables</span></div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="class_t_utilities.html#a0fd0d8e0ec95309b508fd37fa541555e">   75</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_t_utilities.html#a0fd0d8e0ec95309b508fd37fa541555e">Clock2Stopped</a>;</div>
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="class_t_utilities.html#a52111fe8678b83ca072a2b235bf80821">   77</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_t_utilities.html#a52111fe8678b83ca072a2b235bf80821">RedLowFlag</a>;</div>
<div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="class_t_utilities.html#a3c2a72a2871d92ccaced9ab9f91d65c2">   79</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_t_utilities.html#a3c2a72a2871d92ccaced9ab9f91d65c2">RHSignalFlag</a>;</div>
<div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="class_t_utilities.html#a10e6a4ee0aafcd732d1a2dc8a670466b">   81</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_t_utilities.html#a10e6a4ee0aafcd732d1a2dc8a670466b">SetLocaleResultOK</a>;</div>
<div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="class_t_utilities.html#afd93c190e8be4692909d59d956ae1a07">   83</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_t_utilities.html#afd93c190e8be4692909d59d956ae1a07">ShowLongServRefsFlag</a>;</div>
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="class_t_utilities.html#a959a5eb9ca935e1e4e0a36c6e48dff37">   85</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_t_utilities.html#a959a5eb9ca935e1e4e0a36c6e48dff37">NoPlatsMessageSent</a>; <span class="comment">//moved here from Track class v2.23.0</span></div>
<div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="class_t_utilities.html#a5f785004a9072b6e737d1a2f034e0de4">   87</a></span>&#160;<span class="comment"></span>    <span class="keywordtype">bool</span> <a class="code" href="class_t_utilities.html#a5f785004a9072b6e737d1a2f034e0de4">OverrideAndHideSignalBridgeMessage</a>; <span class="comment">// added at v2.5.1 to allow facing signals before bridges - with a warning (moved here from Track class v2.23.0)</span></div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="class_t_utilities.html#a19e0b3570b0171a37d2e6a963d06e977">   89</a></span>&#160;<span class="comment"></span>    <span class="keywordtype">char</span> <a class="code" href="class_t_utilities.html#a19e0b3570b0171a37d2e6a963d06e977">DecimalPoint</a>;</div>
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="class_t_utilities.html#a60411e55bbf7ac96ad02d4146af0e4c6">   91</a></span>&#160;    <span class="keywordtype">double</span> <a class="code" href="class_t_utilities.html#a60411e55bbf7ac96ad02d4146af0e4c6">LastDelayTTClockTime</a>;</div>
<div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="class_t_utilities.html#a0a66f04e962a1253b1bb899f718f2026">   93</a></span>&#160;    <span class="keywordtype">double</span> <a class="code" href="class_t_utilities.html#a0a66f04e962a1253b1bb899f718f2026">MTBTSRs</a>;</div>
<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="class_t_utilities.html#aaeccf1b6ca36bf04ab127e8830a506a9">   95</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_t_utilities.html#aaeccf1b6ca36bf04ab127e8830a506a9">DefaultTrackLength</a>;</div>
<div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="class_t_utilities.html#a86440fb6b545f487bcfeb0575fdbc06c">   97</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_t_utilities.html#a86440fb6b545f487bcfeb0575fdbc06c">DefaultTrackSpeedLimit</a>;</div>
<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="class_t_utilities.html#a81cdc4810af7fb4d2efd80a1abe92a7d">   99</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_t_utilities.html#a81cdc4810af7fb4d2efd80a1abe92a7d">PointChangeEventsPerFailure</a>;</div>
<div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="class_t_utilities.html#a59f6343f504ae8402ea9d966dafc8ebb">  101</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_t_utilities.html#a59f6343f504ae8402ea9d966dafc8ebb">SignalChangeEventsPerFailure</a>;</div>
<div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="class_t_utilities.html#ac9422864dc36c3d98ad952f10026c572">  103</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_t_utilities.html#ac9422864dc36c3d98ad952f10026c572">ScreenElementWidth</a>;</div>
<div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="class_t_utilities.html#a45d9703729a28c2fb2638539fa909e81">  105</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_t_utilities.html#a45d9703729a28c2fb2638539fa909e81">ScreenElementHeight</a>;</div>
<div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="class_t_utilities.html#a9965ae79442fbb5b1ce5ba1043dd144d">  107</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_t_utilities.html#a9965ae79442fbb5b1ce5ba1043dd144d">CumulativeDelayedRandMinsAllTrains</a>;</div>
<div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="class_t_utilities.html#acc7cd1d066ac7942ad6c1239b3c25eee">  109</a></span>&#160;    std::ofstream <a class="code" href="class_t_utilities.html#acc7cd1d066ac7942ad6c1239b3c25eee">PerformanceFile</a>;</div>
<div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="class_t_utilities.html#abf6c3e70d5fbf58720ff0d9f80de5bde">  111</a></span>&#160;    std::deque&lt;AnsiString&gt;<a class="code" href="class_t_utilities.html#abf6c3e70d5fbf58720ff0d9f80de5bde">CallLog</a>;</div>
<div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="class_t_utilities.html#ace6be5cece5f2e271c0b85a9d2f51917">  113</a></span>&#160;    std::deque&lt;AnsiString&gt;<a class="code" href="class_t_utilities.html#ace6be5cece5f2e271c0b85a9d2f51917">EventLog</a>;</div>
<div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="class_t_utilities.html#a522d39d776b620c84be9d0b4eb9f52a0">  115</a></span>&#160;    TDateTime <a class="code" href="class_t_utilities.html#a522d39d776b620c84be9d0b4eb9f52a0">LastTSRCheckTime</a>;</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;    AnsiString <a class="code" href="class_t_utilities.html#a9ca62e05ace8e6c4c33d377c26c48e55">DateTimeStamp</a>();</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;    AnsiString <a class="code" href="class_t_utilities.html#a34bd6bb5305bc29afdf424f6d35a921c">TimeStamp</a>();</div>
<div class="line"><a name="l00121"></a><span class="lineno"><a class="line" href="class_t_utilities.html#a89b8716bbc78332d40427ed688ce56bd">  121</a></span>&#160;    TColor <a class="code" href="class_t_utilities.html#a89b8716bbc78332d40427ed688ce56bd">clTransparent</a>;</div>
<div class="line"><a name="l00123"></a><span class="lineno"><a class="line" href="class_t_utilities.html#a31e0e69b53b598580277d76a474c0e3e">  123</a></span>&#160;    <a class="code" href="_utilities_8h.html#a90aecfc4f47c8d044781e5bb2f120d3b">TDelayMode</a> <a class="code" href="class_t_utilities.html#a31e0e69b53b598580277d76a474c0e3e">DelayMode</a>;</div>
<div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="class_t_utilities.html#a4547c5b6eab3a823c6558a53a6974073">  125</a></span>&#160;    <a class="code" href="_utilities_8h.html#a883faa4add820b7ae34c5f179421f91a">TFailureMode</a> <a class="code" href="class_t_utilities.html#a4547c5b6eab3a823c6558a53a6974073">FailureMode</a>;</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160; </div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;<span class="comment">//functions</span></div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;<span class="comment">// void LogEvent(AnsiString Str); //store Str to the event log - moved to TTrainController for v0.6 so can record the tt clock value</span></div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_t_utilities.html#ae1eddca13cc3c492839e131f40ec21c0">CallLogPop</a>(<span class="keywordtype">int</span> Caller);</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_t_utilities.html#a100a392ac8eeb3955796954a5afade36">FileDiagnostics</a>(AnsiString Input);</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_t_utilities.html#ad739c8582c6273833890b56408c3b1ca">Pause</a>(<span class="keywordtype">double</span> Msec);</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_t_utilities.html#a06a211ebaa112f3fac0edc5b238ef876">SaveFileBool</a>(std::ofstream &amp;OutFile, <span class="keywordtype">bool</span> SaveBool);</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_t_utilities.html#a86ed634e8a9d7ca534a324954f4a7a2f">SaveFileInt</a>(std::ofstream &amp;OutFile, <span class="keywordtype">int</span> SaveInt);</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_t_utilities.html#a92b5adfb8ad3a937a8d208bfd90a5741">SaveFileDouble</a>(std::ofstream &amp;OutFile, <span class="keywordtype">double</span> SaveDouble);</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_t_utilities.html#a60531c6cb1a6a33dd71299d3a5b6cc21">SaveFileString</a>(std::ofstream &amp;OutFile, AnsiString SaveString);</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_t_utilities.html#a9a0ec4d0c686c71157c371d647824777">LoadFileBool</a>(std::ifstream &amp;InFile);</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_t_utilities.html#a84bf39701305cf4814377d178d0fec8c">LoadFileInt</a>(std::ifstream &amp;InFile);</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;    <span class="keywordtype">double</span> <a class="code" href="class_t_utilities.html#ac970a0df84f5cb26ed962020b7dc2d6d">LoadFileDouble</a>(std::ifstream &amp;InFile);</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;    AnsiString <a class="code" href="class_t_utilities.html#a0aac90f10a08736514da3b3e02129e1e">LoadFileString</a>(std::ifstream &amp;InFile);</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_t_utilities.html#a1b39fffcd392bfb0f5a2ca393de3a6bb">CheckFileBool</a>(std::ifstream &amp;InFile);</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_t_utilities.html#a4d229af6e8943da1936bcbcc1c83846b">CheckFileInt</a>(std::ifstream &amp;InFile, <span class="keywordtype">int</span> Lowest, <span class="keywordtype">int</span> Highest);</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_t_utilities.html#ab4b66aa7480fda73d554fe0bcca82b60">CheckAndReadFileInt</a>(std::ifstream &amp;InFile, <span class="keywordtype">int</span> Lowest, <span class="keywordtype">int</span> Highest, <span class="keywordtype">int</span> &amp;OutInt);</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_t_utilities.html#a5c7332a6b45894902f271f0ab9ab87db">CheckFileDouble</a>(std::ifstream &amp;InFile);</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_t_utilities.html#aea3e330f1fd0c0e68c84a338bd5f6c3c">CheckStringDouble</a>(AnsiString &amp;DoubleString);</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_t_utilities.html#a7896a24d025c8164b2c8215944d072aa">CheckFileString</a>(std::ifstream &amp;InFile);</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_t_utilities.html#a8bc6745e0433d55022e016b6551f04a0">CheckFileStringZeroDelimiter</a>(std::ifstream &amp;InFile);</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_t_utilities.html#a6a03c1597e2cc5d71c2f88ac36f11363">CheckAndCompareFileString</a>(std::ifstream &amp;InFile, AnsiString InString);</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_t_utilities.html#a0a0ef5bf2fc74c0026f2a8bec4151d37">CheckAndReadFileString</a>(std::ifstream &amp;InFile, AnsiString &amp;OutString);</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_t_utilities.html#a3c79ab051602edf407b81a71d2e72119">CheckAndReadOneLineFromConfigFile</a>(std::ifstream &amp;InFile, AnsiString &amp;OutString);</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_t_utilities.html#a0350456fd482593c424d125536b34093">ReadOneLineFromCouplingFile</a>(std::ifstream &amp;InFile, AnsiString &amp;OutString);</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;    AnsiString <a class="code" href="class_t_utilities.html#a2dfbe3d4ed11770bc1a902b51afdc10c">Format96HHMMSS</a>(TDateTime DateTime);</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;    AnsiString <a class="code" href="class_t_utilities.html#a6dc0e83b149563fdf43f068fd26cead8">Format96HHMM</a>(TDateTime DateTime);</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;    AnsiString <a class="code" href="class_t_utilities.html#ae6df4b6a5d1398f57ff62799331351a8">IncrementAnsiTimeOneMinute</a>(AnsiString TimeVal);</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;<span class="comment">//constructor</span></div>
<div class="line"><a name="l00181"></a><span class="lineno"><a class="line" href="class_t_utilities.html#accca240b71d4081a33e9a7080f661779">  181</a></span>&#160;    <a class="code" href="class_t_utilities.html#accca240b71d4081a33e9a7080f661779">TUtilities</a>()</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;    {</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;        <a class="code" href="class_t_utilities.html#ac90efde52aee911e415d52e7ac6227ad">MinorDelayCutoff</a> = 2000.0;  <span class="comment">//if random(10000) &gt; 2000 there is no delay</span></div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;        <a class="code" href="class_t_utilities.html#a3194f06722e68ce72f9968f5f85e3c8f">ModerateDelayCutoff</a> = 3000.0;</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;        <a class="code" href="class_t_utilities.html#afcf1e36ba4cce8470285d047c8b9cb13">MajorDelayCutoff</a> = 3500.0;</div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;        <a class="code" href="class_t_utilities.html#a9bb794804a4bec3887d63adca9db5dac">MinorDelayFactor</a> = 1.5; <span class="comment">//multiplication factor for log(MinorDelayCutoff/randval) where randval is 1 to 1999</span></div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;        <a class="code" href="class_t_utilities.html#a4232af5a39f009bc8cbb7bfc4663142a">ModerateDelayFactor</a> = 3.0;</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;        <a class="code" href="class_t_utilities.html#a67ecc5fc0071c86a3126e63d265020b1">MajorDelayFactor</a> = 6.0;</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;        <a class="code" href="class_t_utilities.html#a6de32a7421601aab5689cabbb7dde465">NilPointChangeEventsPerFailure</a> = 1000000; <span class="comment">//these set high but not used for no delays</span></div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;        <a class="code" href="class_t_utilities.html#a244b2f44fa9ea31371c076cfc0262e04">NilSignalChangeEventsPerFailure</a> = 1000000;</div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;        <a class="code" href="class_t_utilities.html#aac7fbaa73f50fb32b5efe38d071a2eb4">NilMTBTSRs</a> = 1000000;</div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;        <a class="code" href="class_t_utilities.html#a9d56c83b95531e26b1c62dd6771f6b11">MinorPointChangeEventsPerFailure</a> = 1000;</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;        <a class="code" href="class_t_utilities.html#a7dba9ac5efb64fb83bc6b36770749298">MinorSignalChangeEventsPerFailure</a> = 2000;</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;        <a class="code" href="class_t_utilities.html#a388cc790966733382ddc173f748ab6d6">MinorMTBTSRs</a> = 200; <span class="comment">//once every 200 days per simple element</span></div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;        <a class="code" href="class_t_utilities.html#ac98d33b8d5845ad74b54d6b7c92d95a7">ModeratePointChangeEventsPerFailure</a> = 400;</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;        <a class="code" href="class_t_utilities.html#a20ae7bf91b93f29bafb37ead829b7d28">ModerateSignalChangeEventsPerFailure</a> = 1000;</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;        <a class="code" href="class_t_utilities.html#aa2a4f55a8b3315c479133290032998e8">ModerateMTBTSRs</a> = 100;</div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;        <a class="code" href="class_t_utilities.html#ab3be63951eee57df78cf0bd96c9a1b9a">MajorPointChangeEventsPerFailure</a> = 200;</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;        <a class="code" href="class_t_utilities.html#a074fc0a3b1d6dbfd514357209eea756b">MajorSignalChangeEventsPerFailure</a> = 500;</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;        <a class="code" href="class_t_utilities.html#a4509aa6dd1d0f6b69db8008070f3dbab">MajorMTBTSRs</a> = 50;</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;        <a class="code" href="class_t_utilities.html#ae7abd82dfb74ba9706cde72a9ba3c014">RepairDiagnosisTime</a> = 5.0;</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;        <a class="code" href="class_t_utilities.html#a53cd396b37abddd24064eaa524d89db0">MaxRandomRepairTime</a> = 170;</div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;        <a class="code" href="class_t_utilities.html#aabf10d10edc0fd28bb2890d70f9b02ee">FixedMinRepairTime</a> = 10;</div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160; </div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;    }</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;};</div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160; </div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;<span class="comment">// ---------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160; </div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;<span class="keyword">extern</span> <a class="code" href="class_t_utilities.html">TUtilities</a> *<a class="code" href="_utilities_8h.html#a69ecaeba7a18032cf8a1d212b92d94f8">Utilities</a>; <span class="comment">// the object pointer, object created in InterfaceUnit</span></div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160; </div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;<span class="comment">// ---------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;<span class="preprocessor">#endif</span></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<div class="ttc" id="a_utilities_8h_html_a883faa4add820b7ae34c5f179421f91aaf3e7ed27a1e052d4c889418e8f2d3327"><div class="ttname"><a href="_utilities_8h.html#a883faa4add820b7ae34c5f179421f91aaf3e7ed27a1e052d4c889418e8f2d3327">FMinor</a></div><div class="ttdeci">@ FMinor</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00043">Utilities.h:43</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_a0aac90f10a08736514da3b3e02129e1e"><div class="ttname"><a href="class_t_utilities.html#a0aac90f10a08736514da3b3e02129e1e">TUtilities::LoadFileString</a></div><div class="ttdeci">AnsiString LoadFileString(std::ifstream &amp;InFile)</div><div class="ttdoc">loads a string value from the file</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8cpp_source.html#l00214">Utilities.cpp:214</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_a9d56c83b95531e26b1c62dd6771f6b11"><div class="ttname"><a href="class_t_utilities.html#a9d56c83b95531e26b1c62dd6771f6b11">TUtilities::MinorPointChangeEventsPerFailure</a></div><div class="ttdeci">int MinorPointChangeEventsPerFailure</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00060">Utilities.h:60</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_ac9422864dc36c3d98ad952f10026c572"><div class="ttname"><a href="class_t_utilities.html#ac9422864dc36c3d98ad952f10026c572">TUtilities::ScreenElementWidth</a></div><div class="ttdeci">int ScreenElementWidth</div><div class="ttdoc">width of display screen in elements</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00103">Utilities.h:103</a></div></div>
<div class="ttc" id="a_utilities_8h_html_a883faa4add820b7ae34c5f179421f91aa30a573a3972c489bd29d8f01c4fcf79c"><div class="ttname"><a href="_utilities_8h.html#a883faa4add820b7ae34c5f179421f91aa30a573a3972c489bd29d8f01c4fcf79c">FModerate</a></div><div class="ttdeci">@ FModerate</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00043">Utilities.h:43</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_a52111fe8678b83ca072a2b235bf80821"><div class="ttname"><a href="class_t_utilities.html#a52111fe8678b83ca072a2b235bf80821">TUtilities::RedLowFlag</a></div><div class="ttdeci">bool RedLowFlag</div><div class="ttdoc">Sets Red = low values for heatmaps.</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00077">Utilities.h:77</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_a8bc6745e0433d55022e016b6551f04a0"><div class="ttname"><a href="class_t_utilities.html#a8bc6745e0433d55022e016b6551f04a0">TUtilities::CheckFileStringZeroDelimiter</a></div><div class="ttdeci">bool CheckFileStringZeroDelimiter(std::ifstream &amp;InFile)</div><div class="ttdoc">checks that the value is a string ('0' only accepted as the delimiter), returns true for success</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8cpp_source.html#l00459">Utilities.cpp:459</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_aac7fbaa73f50fb32b5efe38d071a2eb4"><div class="ttname"><a href="class_t_utilities.html#aac7fbaa73f50fb32b5efe38d071a2eb4">TUtilities::NilMTBTSRs</a></div><div class="ttdeci">int NilMTBTSRs</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00059">Utilities.h:59</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_ae6df4b6a5d1398f57ff62799331351a8"><div class="ttname"><a href="class_t_utilities.html#ae6df4b6a5d1398f57ff62799331351a8">TUtilities::IncrementAnsiTimeOneMinute</a></div><div class="ttdeci">AnsiString IncrementAnsiTimeOneMinute(AnsiString TimeVal)</div><div class="ttdoc">takes &quot;HH:MM&quot; and increments it to &quot;HH:MX&quot;, where MX == MM + 1, incrementing the hour if necessary</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8cpp_source.html#l00850">Utilities.cpp:850</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_ac970a0df84f5cb26ed962020b7dc2d6d"><div class="ttname"><a href="class_t_utilities.html#ac970a0df84f5cb26ed962020b7dc2d6d">TUtilities::LoadFileDouble</a></div><div class="ttdeci">double LoadFileDouble(std::ifstream &amp;InFile)</div><div class="ttdoc">loads a double value from the file (converts from a string to a double) and uses the local decimal po...</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8cpp_source.html#l00196">Utilities.cpp:196</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_a4509aa6dd1d0f6b69db8008070f3dbab"><div class="ttname"><a href="class_t_utilities.html#a4509aa6dd1d0f6b69db8008070f3dbab">TUtilities::MajorMTBTSRs</a></div><div class="ttdeci">int MajorMTBTSRs</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00068">Utilities.h:68</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_a5f785004a9072b6e737d1a2f034e0de4"><div class="ttname"><a href="class_t_utilities.html#a5f785004a9072b6e737d1a2f034e0de4">TUtilities::OverrideAndHideSignalBridgeMessage</a></div><div class="ttdeci">bool OverrideAndHideSignalBridgeMessage</div><div class="ttdoc">&lt; used to send no platforms warning once only</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00087">Utilities.h:87</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_a3c2a72a2871d92ccaced9ab9f91d65c2"><div class="ttname"><a href="class_t_utilities.html#a3c2a72a2871d92ccaced9ab9f91d65c2">TUtilities::RHSignalFlag</a></div><div class="ttdeci">bool RHSignalFlag</div><div class="ttdoc">new at v2.3.0 false=LH signals</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00079">Utilities.h:79</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_aaeccf1b6ca36bf04ab127e8830a506a9"><div class="ttname"><a href="class_t_utilities.html#aaeccf1b6ca36bf04ab127e8830a506a9">TUtilities::DefaultTrackLength</a></div><div class="ttdeci">int DefaultTrackLength</div><div class="ttdoc">length of each track element before being changed within the program (can be changed in config....</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00095">Utilities.h:95</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_aabf10d10edc0fd28bb2890d70f9b02ee"><div class="ttname"><a href="class_t_utilities.html#aabf10d10edc0fd28bb2890d70f9b02ee">TUtilities::FixedMinRepairTime</a></div><div class="ttdeci">int FixedMinRepairTime</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00072">Utilities.h:72</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_a20ae7bf91b93f29bafb37ead829b7d28"><div class="ttname"><a href="class_t_utilities.html#a20ae7bf91b93f29bafb37ead829b7d28">TUtilities::ModerateSignalChangeEventsPerFailure</a></div><div class="ttdeci">int ModerateSignalChangeEventsPerFailure</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00064">Utilities.h:64</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_a388cc790966733382ddc173f748ab6d6"><div class="ttname"><a href="class_t_utilities.html#a388cc790966733382ddc173f748ab6d6">TUtilities::MinorMTBTSRs</a></div><div class="ttdeci">int MinorMTBTSRs</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00062">Utilities.h:62</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_ac98d33b8d5845ad74b54d6b7c92d95a7"><div class="ttname"><a href="class_t_utilities.html#ac98d33b8d5845ad74b54d6b7c92d95a7">TUtilities::ModeratePointChangeEventsPerFailure</a></div><div class="ttdeci">int ModeratePointChangeEventsPerFailure</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00063">Utilities.h:63</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_a2dfbe3d4ed11770bc1a902b51afdc10c"><div class="ttname"><a href="class_t_utilities.html#a2dfbe3d4ed11770bc1a902b51afdc10c">TUtilities::Format96HHMMSS</a></div><div class="ttdeci">AnsiString Format96HHMMSS(TDateTime DateTime)</div><div class="ttdoc">formats a TDateTime into an AnsiString of the form hh:mm:ss where hh runs from 00 to 95 &amp; resets when...</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8cpp_source.html#l00812">Utilities.cpp:812</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_a0350456fd482593c424d125536b34093"><div class="ttname"><a href="class_t_utilities.html#a0350456fd482593c424d125536b34093">TUtilities::ReadOneLineFromCouplingFile</a></div><div class="ttdeci">bool ReadOneLineFromCouplingFile(std::ifstream &amp;InFile, AnsiString &amp;OutString)</div><div class="ttdoc">reads a single line from the multiplayer coupling file, returns true for success with OutString conta...</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8cpp_source.html#l00642">Utilities.cpp:642</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_a9bb794804a4bec3887d63adca9db5dac"><div class="ttname"><a href="class_t_utilities.html#a9bb794804a4bec3887d63adca9db5dac">TUtilities::MinorDelayFactor</a></div><div class="ttdeci">float MinorDelayFactor</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00053">Utilities.h:53</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_a3194f06722e68ce72f9968f5f85e3c8f"><div class="ttname"><a href="class_t_utilities.html#a3194f06722e68ce72f9968f5f85e3c8f">TUtilities::ModerateDelayCutoff</a></div><div class="ttdeci">float ModerateDelayCutoff</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00051">Utilities.h:51</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_a959a5eb9ca935e1e4e0a36c6e48dff37"><div class="ttname"><a href="class_t_utilities.html#a959a5eb9ca935e1e4e0a36c6e48dff37">TUtilities::NoPlatsMessageSent</a></div><div class="ttdeci">bool NoPlatsMessageSent</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00085">Utilities.h:85</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_a4232af5a39f009bc8cbb7bfc4663142a"><div class="ttname"><a href="class_t_utilities.html#a4232af5a39f009bc8cbb7bfc4663142a">TUtilities::ModerateDelayFactor</a></div><div class="ttdeci">float ModerateDelayFactor</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00054">Utilities.h:54</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_afcf1e36ba4cce8470285d047c8b9cb13"><div class="ttname"><a href="class_t_utilities.html#afcf1e36ba4cce8470285d047c8b9cb13">TUtilities::MajorDelayCutoff</a></div><div class="ttdeci">float MajorDelayCutoff</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00052">Utilities.h:52</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_ae1eddca13cc3c492839e131f40ec21c0"><div class="ttname"><a href="class_t_utilities.html#ae1eddca13cc3c492839e131f40ec21c0">TUtilities::CallLogPop</a></div><div class="ttdeci">void CallLogPop(int Caller)</div><div class="ttdoc">pops the last entry off the call stack, throws an error if called when empty</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8cpp_source.html#l00050">Utilities.cpp:50</a></div></div>
<div class="ttc" id="a_utilities_8h_html_a883faa4add820b7ae34c5f179421f91a"><div class="ttname"><a href="_utilities_8h.html#a883faa4add820b7ae34c5f179421f91a">TFailureMode</a></div><div class="ttdeci">TFailureMode</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00041">Utilities.h:42</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_a06a211ebaa112f3fac0edc5b238ef876"><div class="ttname"><a href="class_t_utilities.html#a06a211ebaa112f3fac0edc5b238ef876">TUtilities::SaveFileBool</a></div><div class="ttdeci">void SaveFileBool(std::ofstream &amp;OutFile, bool SaveBool)</div><div class="ttdoc">gives a delay od Msec value;</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8cpp_source.html#l00108">Utilities.cpp:108</a></div></div>
<div class="ttc" id="a_utilities_8h_html_a90aecfc4f47c8d044781e5bb2f120d3b"><div class="ttname"><a href="_utilities_8h.html#a90aecfc4f47c8d044781e5bb2f120d3b">TDelayMode</a></div><div class="ttdeci">TDelayMode</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00036">Utilities.h:37</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_a6dc0e83b149563fdf43f068fd26cead8"><div class="ttname"><a href="class_t_utilities.html#a6dc0e83b149563fdf43f068fd26cead8">TUtilities::Format96HHMM</a></div><div class="ttdeci">AnsiString Format96HHMM(TDateTime DateTime)</div><div class="ttdoc">formats a TDateTime into an AnsiString of the form hh:mm where hh runs from 00 to 95 &amp; resets when it...</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8cpp_source.html#l00831">Utilities.cpp:831</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_aa2a4f55a8b3315c479133290032998e8"><div class="ttname"><a href="class_t_utilities.html#aa2a4f55a8b3315c479133290032998e8">TUtilities::ModerateMTBTSRs</a></div><div class="ttdeci">int ModerateMTBTSRs</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00065">Utilities.h:65</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_a7896a24d025c8164b2c8215944d072aa"><div class="ttname"><a href="class_t_utilities.html#a7896a24d025c8164b2c8215944d072aa">TUtilities::CheckFileString</a></div><div class="ttdeci">bool CheckFileString(std::ifstream &amp;InFile)</div><div class="ttdoc">checks that the value is a string ('0' or CR accepted as delimiters), returns true for success</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8cpp_source.html#l00423">Utilities.cpp:423</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_a86ed634e8a9d7ca534a324954f4a7a2f"><div class="ttname"><a href="class_t_utilities.html#a86ed634e8a9d7ca534a324954f4a7a2f">TUtilities::SaveFileInt</a></div><div class="ttdeci">void SaveFileInt(std::ofstream &amp;OutFile, int SaveInt)</div><div class="ttdoc">stores the int value to the file, then a CR</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8cpp_source.html#l00121">Utilities.cpp:121</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_a4547c5b6eab3a823c6558a53a6974073"><div class="ttname"><a href="class_t_utilities.html#a4547c5b6eab3a823c6558a53a6974073">TUtilities::FailureMode</a></div><div class="ttdeci">TFailureMode FailureMode</div><div class="ttdoc">specifies whether no failures or minor, moderate or major random failures are to be applied (added at...</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00125">Utilities.h:125</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_a4d229af6e8943da1936bcbcc1c83846b"><div class="ttname"><a href="class_t_utilities.html#a4d229af6e8943da1936bcbcc1c83846b">TUtilities::CheckFileInt</a></div><div class="ttdeci">bool CheckFileInt(std::ifstream &amp;InFile, int Lowest, int Highest)</div><div class="ttdoc">checks that the value is an int lying between Lowest &amp; Highest (inclusive), returns true for success</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8cpp_source.html#l00262">Utilities.cpp:262</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_a59f6343f504ae8402ea9d966dafc8ebb"><div class="ttname"><a href="class_t_utilities.html#a59f6343f504ae8402ea9d966dafc8ebb">TUtilities::SignalChangeEventsPerFailure</a></div><div class="ttdeci">int SignalChangeEventsPerFailure</div><div class="ttdoc">number of signal changes between failures - reciprocal of failure probability per change</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00101">Utilities.h:101</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_ad739c8582c6273833890b56408c3b1ca"><div class="ttname"><a href="class_t_utilities.html#ad739c8582c6273833890b56408c3b1ca">TUtilities::Pause</a></div><div class="ttdeci">void Pause(double Msec)</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8cpp_source.html#l00136">Utilities.cpp:136</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_a7dba9ac5efb64fb83bc6b36770749298"><div class="ttname"><a href="class_t_utilities.html#a7dba9ac5efb64fb83bc6b36770749298">TUtilities::MinorSignalChangeEventsPerFailure</a></div><div class="ttdeci">int MinorSignalChangeEventsPerFailure</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00061">Utilities.h:61</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_a9965ae79442fbb5b1ce5ba1043dd144d"><div class="ttname"><a href="class_t_utilities.html#a9965ae79442fbb5b1ce5ba1043dd144d">TUtilities::CumulativeDelayedRandMinsAllTrains</a></div><div class="ttdeci">int CumulativeDelayedRandMinsAllTrains</div><div class="ttdoc">the running total of all random delays including knock-on delays for all trains, used to reduce total...</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00107">Utilities.h:107</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_a3c79ab051602edf407b81a71d2e72119"><div class="ttname"><a href="class_t_utilities.html#a3c79ab051602edf407b81a71d2e72119">TUtilities::CheckAndReadOneLineFromConfigFile</a></div><div class="ttdeci">bool CheckAndReadOneLineFromConfigFile(std::ifstream &amp;InFile, AnsiString &amp;OutString)</div><div class="ttdoc">similar to CheckAndReadFileString but allows tab characters and doesn't ignore initial   characters</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8cpp_source.html#l00605">Utilities.cpp:605</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_a0a0ef5bf2fc74c0026f2a8bec4151d37"><div class="ttname"><a href="class_t_utilities.html#a0a0ef5bf2fc74c0026f2a8bec4151d37">TUtilities::CheckAndReadFileString</a></div><div class="ttdeci">bool CheckAndReadFileString(std::ifstream &amp;InFile, AnsiString &amp;OutString)</div><div class="ttdoc">checks that the value is a string ('0' or ' ' (CRLF) accepted as delimiters), returns true for succes...</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8cpp_source.html#l00553">Utilities.cpp:553</a></div></div>
<div class="ttc" id="a_utilities_8h_html_a883faa4add820b7ae34c5f179421f91aa0031a6a8a5e752ec07dd0e6b336f7ab1"><div class="ttname"><a href="_utilities_8h.html#a883faa4add820b7ae34c5f179421f91aa0031a6a8a5e752ec07dd0e6b336f7ab1">FNil</a></div><div class="ttdeci">@ FNil</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00043">Utilities.h:43</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_a522d39d776b620c84be9d0b4eb9f52a0"><div class="ttname"><a href="class_t_utilities.html#a522d39d776b620c84be9d0b4eb9f52a0">TUtilities::LastTSRCheckTime</a></div><div class="ttdeci">TDateTime LastTSRCheckTime</div><div class="ttdoc">time of last TSR check, used every minute, added at v2.13.0 //change from 5 mins to 1 min at v2....</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00115">Utilities.h:115</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_a92b5adfb8ad3a937a8d208bfd90a5741"><div class="ttname"><a href="class_t_utilities.html#a92b5adfb8ad3a937a8d208bfd90a5741">TUtilities::SaveFileDouble</a></div><div class="ttdeci">void SaveFileDouble(std::ofstream &amp;OutFile, double SaveDouble)</div><div class="ttdoc">converts the double value to a string (if double stored directly it is truncated to 6 digits) then st...</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8cpp_source.html#l00127">Utilities.cpp:127</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_a89b8716bbc78332d40427ed688ce56bd"><div class="ttname"><a href="class_t_utilities.html#a89b8716bbc78332d40427ed688ce56bd">TUtilities::clTransparent</a></div><div class="ttdeci">TColor clTransparent</div><div class="ttdoc">the display background colour, can be white, black or dark blue</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00121">Utilities.h:121</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_aea3e330f1fd0c0e68c84a338bd5f6c3c"><div class="ttname"><a href="class_t_utilities.html#aea3e330f1fd0c0e68c84a338bd5f6c3c">TUtilities::CheckStringDouble</a></div><div class="ttdeci">bool CheckStringDouble(AnsiString &amp;DoubleString)</div><div class="ttdoc">checks the string represents a valid double value, returns true for success. Added at v2....</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8cpp_source.html#l00394">Utilities.cpp:394</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_a0a66f04e962a1253b1bb899f718f2026"><div class="ttname"><a href="class_t_utilities.html#a0a66f04e962a1253b1bb899f718f2026">TUtilities::MTBTSRs</a></div><div class="ttdeci">double MTBTSRs</div><div class="ttdoc">temporary speed restriction, units /day/simple element added at v2.13.0</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00093">Utilities.h:93</a></div></div>
<div class="ttc" id="a_utilities_8h_html_a90aecfc4f47c8d044781e5bb2f120d3ba3892f12903b98ca0d89fe787c0fc4419"><div class="ttname"><a href="_utilities_8h.html#a90aecfc4f47c8d044781e5bb2f120d3ba3892f12903b98ca0d89fe787c0fc4419">Nil</a></div><div class="ttdeci">@ Nil</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00038">Utilities.h:38</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_a34bd6bb5305bc29afdf424f6d35a921c"><div class="ttname"><a href="class_t_utilities.html#a34bd6bb5305bc29afdf424f6d35a921c">TUtilities::TimeStamp</a></div><div class="ttdeci">AnsiString TimeStamp()</div><div class="ttdoc">creates a string of the form 'hh:mm:ss' for use in call &amp; event logging</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8cpp_source.html#l00073">Utilities.cpp:73</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_ab4b66aa7480fda73d554fe0bcca82b60"><div class="ttname"><a href="class_t_utilities.html#ab4b66aa7480fda73d554fe0bcca82b60">TUtilities::CheckAndReadFileInt</a></div><div class="ttdeci">bool CheckAndReadFileInt(std::ifstream &amp;InFile, int Lowest, int Highest, int &amp;OutInt)</div><div class="ttdoc">checks that the value is an int lying between Lowest &amp; Highest (inclusive), returns true for success ...</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8cpp_source.html#l00304">Utilities.cpp:304</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_a19e0b3570b0171a37d2e6a963d06e977"><div class="ttname"><a href="class_t_utilities.html#a19e0b3570b0171a37d2e6a963d06e977">TUtilities::DecimalPoint</a></div><div class="ttdeci">char DecimalPoint</div><div class="ttdoc">&lt;if false signals facing bridges are not permitted, but can be set to true using CTRL ALT 5</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00089">Utilities.h:89</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_a31e0e69b53b598580277d76a474c0e3e"><div class="ttname"><a href="class_t_utilities.html#a31e0e69b53b598580277d76a474c0e3e">TUtilities::DelayMode</a></div><div class="ttdeci">TDelayMode DelayMode</div><div class="ttdoc">specifies whether no delays or minor, moderate or major random delays are to be applied (added at v2....</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00123">Utilities.h:123</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_a60531c6cb1a6a33dd71299d3a5b6cc21"><div class="ttname"><a href="class_t_utilities.html#a60531c6cb1a6a33dd71299d3a5b6cc21">TUtilities::SaveFileString</a></div><div class="ttdeci">void SaveFileString(std::ofstream &amp;OutFile, AnsiString SaveString)</div><div class="ttdoc">stores the string value to the file, then a '0' delimiter then a CR</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8cpp_source.html#l00159">Utilities.cpp:159</a></div></div>
<div class="ttc" id="aclass_t_utilities_html"><div class="ttname"><a href="class_t_utilities.html">TUtilities</a></div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00046">Utilities.h:47</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_a84bf39701305cf4814377d178d0fec8c"><div class="ttname"><a href="class_t_utilities.html#a84bf39701305cf4814377d178d0fec8c">TUtilities::LoadFileInt</a></div><div class="ttdeci">int LoadFileInt(std::ifstream &amp;InFile)</div><div class="ttdoc">loads an int value from the file</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8cpp_source.html#l00186">Utilities.cpp:186</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_ac90efde52aee911e415d52e7ac6227ad"><div class="ttname"><a href="class_t_utilities.html#ac90efde52aee911e415d52e7ac6227ad">TUtilities::MinorDelayCutoff</a></div><div class="ttdeci">float MinorDelayCutoff</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00050">Utilities.h:50</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_ace6be5cece5f2e271c0b85a9d2f51917"><div class="ttname"><a href="class_t_utilities.html#ace6be5cece5f2e271c0b85a9d2f51917">TUtilities::EventLog</a></div><div class="ttdeci">std::deque&lt; AnsiString &gt; EventLog</div><div class="ttdoc">event store, saved to the errorlog for diagnostic purposes</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00113">Utilities.h:113</a></div></div>
<div class="ttc" id="a_utilities_8h_html_a90aecfc4f47c8d044781e5bb2f120d3ba9bff008f7a709ad64585edee31691d8e"><div class="ttname"><a href="_utilities_8h.html#a90aecfc4f47c8d044781e5bb2f120d3ba9bff008f7a709ad64585edee31691d8e">Moderate</a></div><div class="ttdeci">@ Moderate</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00038">Utilities.h:38</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_afd93c190e8be4692909d59d956ae1a07"><div class="ttname"><a href="class_t_utilities.html#afd93c190e8be4692909d59d956ae1a07">TUtilities::ShowLongServRefsFlag</a></div><div class="ttdeci">bool ShowLongServRefsFlag</div><div class="ttdoc">when set long service references show on screen, initialised in Interface constructor</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00083">Utilities.h:83</a></div></div>
<div class="ttc" id="a_utilities_8h_html_a90aecfc4f47c8d044781e5bb2f120d3babf86141fa29ab96a0cf6fad57b11d842"><div class="ttname"><a href="_utilities_8h.html#a90aecfc4f47c8d044781e5bb2f120d3babf86141fa29ab96a0cf6fad57b11d842">Major</a></div><div class="ttdeci">@ Major</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00039">Utilities.h:38</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_a67ecc5fc0071c86a3126e63d265020b1"><div class="ttname"><a href="class_t_utilities.html#a67ecc5fc0071c86a3126e63d265020b1">TUtilities::MajorDelayFactor</a></div><div class="ttdeci">float MajorDelayFactor</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00055">Utilities.h:55</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_ae7abd82dfb74ba9706cde72a9ba3c014"><div class="ttname"><a href="class_t_utilities.html#ae7abd82dfb74ba9706cde72a9ba3c014">TUtilities::RepairDiagnosisTime</a></div><div class="ttdeci">float RepairDiagnosisTime</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00070">Utilities.h:70</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_a100a392ac8eeb3955796954a5afade36"><div class="ttname"><a href="class_t_utilities.html#a100a392ac8eeb3955796954a5afade36">TUtilities::FileDiagnostics</a></div><div class="ttdeci">void FileDiagnostics(AnsiString Input)</div><div class="ttdoc">sends Input to 'TestFile.csv', this is a diagnostic function used during development</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8cpp_source.html#l00100">Utilities.cpp:100</a></div></div>
<div class="ttc" id="a_utilities_8h_html_a90aecfc4f47c8d044781e5bb2f120d3bac291d8af9642b24153c5a16658a85d4c"><div class="ttname"><a href="_utilities_8h.html#a90aecfc4f47c8d044781e5bb2f120d3bac291d8af9642b24153c5a16658a85d4c">Minor</a></div><div class="ttdeci">@ Minor</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00038">Utilities.h:38</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_a5c7332a6b45894902f271f0ab9ab87db"><div class="ttname"><a href="class_t_utilities.html#a5c7332a6b45894902f271f0ab9ab87db">TUtilities::CheckFileDouble</a></div><div class="ttdeci">bool CheckFileDouble(std::ifstream &amp;InFile)</div><div class="ttdoc">checks that the value is a double, returns true for success</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8cpp_source.html#l00355">Utilities.cpp:355</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_acc7cd1d066ac7942ad6c1239b3c25eee"><div class="ttname"><a href="class_t_utilities.html#acc7cd1d066ac7942ad6c1239b3c25eee">TUtilities::PerformanceFile</a></div><div class="ttdeci">std::ofstream PerformanceFile</div><div class="ttdoc">the file where the performance log for a particular period of operation is saved</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00109">Utilities.h:109</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_a9ca62e05ace8e6c4c33d377c26c48e55"><div class="ttname"><a href="class_t_utilities.html#a9ca62e05ace8e6c4c33d377c26c48e55">TUtilities::DateTimeStamp</a></div><div class="ttdeci">AnsiString DateTimeStamp()</div><div class="ttdoc">creates a string of the form 'dd/mm/yyyy hh:mm:ss' for use in call &amp; event logging</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8cpp_source.html#l00067">Utilities.cpp:67</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_a1b39fffcd392bfb0f5a2ca393de3a6bb"><div class="ttname"><a href="class_t_utilities.html#a1b39fffcd392bfb0f5a2ca393de3a6bb">TUtilities::CheckFileBool</a></div><div class="ttdeci">bool CheckFileBool(std::ifstream &amp;InFile)</div><div class="ttdoc">checks that the value is a bool returns true for success</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8cpp_source.html#l00233">Utilities.cpp:233</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_a244b2f44fa9ea31371c076cfc0262e04"><div class="ttname"><a href="class_t_utilities.html#a244b2f44fa9ea31371c076cfc0262e04">TUtilities::NilSignalChangeEventsPerFailure</a></div><div class="ttdeci">int NilSignalChangeEventsPerFailure</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00058">Utilities.h:58</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_a53cd396b37abddd24064eaa524d89db0"><div class="ttname"><a href="class_t_utilities.html#a53cd396b37abddd24064eaa524d89db0">TUtilities::MaxRandomRepairTime</a></div><div class="ttdeci">int MaxRandomRepairTime</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00071">Utilities.h:71</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_a81cdc4810af7fb4d2efd80a1abe92a7d"><div class="ttname"><a href="class_t_utilities.html#a81cdc4810af7fb4d2efd80a1abe92a7d">TUtilities::PointChangeEventsPerFailure</a></div><div class="ttdeci">int PointChangeEventsPerFailure</div><div class="ttdoc">number of points changes between failures - reciprocal of failure probability per change</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00099">Utilities.h:99</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_ab3be63951eee57df78cf0bd96c9a1b9a"><div class="ttname"><a href="class_t_utilities.html#ab3be63951eee57df78cf0bd96c9a1b9a">TUtilities::MajorPointChangeEventsPerFailure</a></div><div class="ttdeci">int MajorPointChangeEventsPerFailure</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00066">Utilities.h:66</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_a6a03c1597e2cc5d71c2f88ac36f11363"><div class="ttname"><a href="class_t_utilities.html#a6a03c1597e2cc5d71c2f88ac36f11363">TUtilities::CheckAndCompareFileString</a></div><div class="ttdeci">bool CheckAndCompareFileString(std::ifstream &amp;InFile, AnsiString InString)</div><div class="ttdoc">checks that the value is a string ('0' or CR accepted as delimiters) and is the same as InString,...</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8cpp_source.html#l00498">Utilities.cpp:498</a></div></div>
<div class="ttc" id="a_utilities_8h_html_a69ecaeba7a18032cf8a1d212b92d94f8"><div class="ttname"><a href="_utilities_8h.html#a69ecaeba7a18032cf8a1d212b92d94f8">Utilities</a></div><div class="ttdeci">TUtilities * Utilities</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8cpp_source.html#l00047">Utilities.cpp:47</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_abf6c3e70d5fbf58720ff0d9f80de5bde"><div class="ttname"><a href="class_t_utilities.html#abf6c3e70d5fbf58720ff0d9f80de5bde">TUtilities::CallLog</a></div><div class="ttdeci">std::deque&lt; AnsiString &gt; CallLog</div><div class="ttdoc">call stack store, saved to the errorlog for diagnostic purposes</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00111">Utilities.h:111</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_a9a0ec4d0c686c71157c371d647824777"><div class="ttname"><a href="class_t_utilities.html#a9a0ec4d0c686c71157c371d647824777">TUtilities::LoadFileBool</a></div><div class="ttdeci">bool LoadFileBool(std::ifstream &amp;InFile)</div><div class="ttdoc">loads a bool value from the file</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8cpp_source.html#l00169">Utilities.cpp:169</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_a6de32a7421601aab5689cabbb7dde465"><div class="ttname"><a href="class_t_utilities.html#a6de32a7421601aab5689cabbb7dde465">TUtilities::NilPointChangeEventsPerFailure</a></div><div class="ttdeci">int NilPointChangeEventsPerFailure</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00057">Utilities.h:57</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_a60411e55bbf7ac96ad02d4146af0e4c6"><div class="ttname"><a href="class_t_utilities.html#a60411e55bbf7ac96ad02d4146af0e4c6">TUtilities::LastDelayTTClockTime</a></div><div class="ttdeci">double LastDelayTTClockTime</div><div class="ttdoc">Clock time at which the latest delay for any train occurred. Used to prevent new delays within 5 minu...</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00091">Utilities.h:91</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_a10e6a4ee0aafcd732d1a2dc8a670466b"><div class="ttname"><a href="class_t_utilities.html#a10e6a4ee0aafcd732d1a2dc8a670466b">TUtilities::SetLocaleResultOK</a></div><div class="ttdeci">bool SetLocaleResultOK</div><div class="ttdoc">flag to indicate whether the call to setlocale() in InterfaceUnit.cpp succeeded or not</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00081">Utilities.h:81</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_a86440fb6b545f487bcfeb0575fdbc06c"><div class="ttname"><a href="class_t_utilities.html#a86440fb6b545f487bcfeb0575fdbc06c">TUtilities::DefaultTrackSpeedLimit</a></div><div class="ttdeci">int DefaultTrackSpeedLimit</div><div class="ttdoc">speed limit of each track element before being changed within the program (can be changed in config....</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00097">Utilities.h:97</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_a0fd0d8e0ec95309b508fd37fa541555e"><div class="ttname"><a href="class_t_utilities.html#a0fd0d8e0ec95309b508fd37fa541555e">TUtilities::Clock2Stopped</a></div><div class="ttdeci">bool Clock2Stopped</div><div class="ttdoc">when true the main loop - Interface-&gt;ClockTimer2 - is stopped</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00075">Utilities.h:75</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_accca240b71d4081a33e9a7080f661779"><div class="ttname"><a href="class_t_utilities.html#accca240b71d4081a33e9a7080f661779">TUtilities::TUtilities</a></div><div class="ttdeci">TUtilities()</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00181">Utilities.h:181</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_a074fc0a3b1d6dbfd514357209eea756b"><div class="ttname"><a href="class_t_utilities.html#a074fc0a3b1d6dbfd514357209eea756b">TUtilities::MajorSignalChangeEventsPerFailure</a></div><div class="ttdeci">int MajorSignalChangeEventsPerFailure</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00067">Utilities.h:67</a></div></div>
<div class="ttc" id="a_utilities_8h_html_a883faa4add820b7ae34c5f179421f91aa40fe3ff890a7aa79561b43aaad3631b0"><div class="ttname"><a href="_utilities_8h.html#a883faa4add820b7ae34c5f179421f91aa40fe3ff890a7aa79561b43aaad3631b0">FMajor</a></div><div class="ttdeci">@ FMajor</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00044">Utilities.h:43</a></div></div>
<div class="ttc" id="aclass_t_utilities_html_a45d9703729a28c2fb2638539fa909e81"><div class="ttname"><a href="class_t_utilities.html#a45d9703729a28c2fb2638539fa909e81">TUtilities::ScreenElementHeight</a></div><div class="ttdeci">int ScreenElementHeight</div><div class="ttdoc">height of display screen in elements</div><div class="ttdef"><b>Definition:</b> <a href="_utilities_8h_source.html#l00105">Utilities.h:105</a></div></div>
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="_utilities_8h.html">Utilities.h</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.18 </li>
  </ul>
</div>
</body>
</html>
